package com.match.pattern.command.light;

import java.util.ArrayList;
import java.util.List;

public class Switch {
	private List<Command> history =new ArrayList<>();
	public Switch() {
	}
	
	public void storeAndExecute(Command cmd) {
		this.history.add(cmd);
		cmd.execute();
	}

}
